#include "mainwindow.h"

#include <QApplication>

namespace py = pybind11;
// 创建Python可导入模块
PYBIND11_EMBEDDED_MODULE(embedded_logger, m) {
    m.def("log", &MainWindow::log, "Log a message",
          py::arg("message"));
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec();
}
